/*
 * ikakeibo 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.ui.model;

import javax.swing.table.DefaultTableColumnModel;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;


/**
 * @author wateray
 * @create 2009-5-2
 */
public class ReceiptColumnModel extends DefaultTableColumnModel {
	
	
	// When a new column is added, set properties based on model
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * javax.swing.table.DefaultTableColumnModel#addColumn(javax.swing.table
	 * .TableColumn)
	 */
	@Override
	public void addColumn(TableColumn aColumn) {
		super.addColumn(aColumn);

//		// Get column data
//		Column column = getColumnObject(aColumn.getModelIndex());
//
//		// Set preferred width
//		aColumn.setPreferredWidth(column.getWidth());
//
//		// Set resizable
//		aColumn.setResizable(column.isResizable());
//
//		// If has cell editor, set cell editor
//		TableCellEditor cellEditor = column.getCellEditor();
//		if (cellEditor != null) {
//			aColumn.setCellEditor(cellEditor);
//		}
//
//		// If has renderer, set cell renderer
//		TableCellRenderer cellRenderer = column.getCellRenderer();
//		if (cellRenderer != null) {
//			aColumn.setCellRenderer(cellRenderer);
//		}
	}
}
